import request from '@/utils/request.js'

// 向外按需导出一个 API 函数
export const getStudentList = function() {
    return request.get('/student/getStudentList')
}

export const saveStudent = function (student) {
    return request.post("/student/saveStudent", student)
}

export const getStudentOne = function (id) {
    return request.post("/student/getStudentOne/" + id)
}

export const editStudent = function (student) {
    return request.post("/student/editStudent", student)
}

export const deleteStudent = function (ids) {
    return request.post("/student/deleteStudent", ids)
}

export const openRecordStatus = function (ids) {
    return request.post("/student/openRecordStatus", ids)
}

export const closeRecordStatus = function (ids) {
    return request.post("/student/closeRecordStatus", ids)
}

